Repository navigation
docs(skills): objectstack-automation spells an expression approver's value as the plain CEL string the schema accepts - #37369
Conversation
…three objectstack-automation fragments Claude-Session: https://claude.ai/code/session_01Utp6CZmwqAVSYHM1nQUDTq Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#5 · os-bill · session_01Utp6CZmwqAVSYHM1nQUDTq Final green head:
|
|
repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X Contract-review-claim: session_01Utp6CYtTDvfPQDzMbZnN5X · head 5e32f8c · 2026-11-26T00:21Z The seat runs the at-tier contract review of this head through an isolated sub-agent; L1 is the seat's own. |
|
repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X Contract reviewServed-tier: ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgment
No must-fix and no should-fix. Nits, none affecting correctness or the contract:
Implemented-by: VERDICT: PASS |
|
repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X 维护者速读
席位意见:ACCEPT。三处示例都按 schema 与运行时核过,仓内无残留写法;契约复核无必改项。 席位核对Head-sha:
|
|
repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X Approval requested (Tier H, |
Requested by Bill · project thread
Fixes #37353
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
skills/objectstack-automation/references/state-machines-and-approvals.md, Dynamic approvers:expressionapprover'svaluewith theceltag. The tag builds a{ dialect, source }object, andApprovalNodeApproverSchema.valueis a string, so a node copied from them was refused. They now readvalue: 'current.co_review_departments',value: 'vars.lead_review.next_reviewers'andvalue: 'current.picked_departments'.type: 'expression'andresolveAsare unchanged.expressionrow of the approver table now saysvalueis "the expression string" (it said "the expression").A changeset for
@objectstack/skills(patch) carries both declaration lines.Skill size (lines; tokens are the ratchet's
ceil(bytes / 4)):SKILL.mdfiles, linesNet lines added under
skills/**: 0 (4 changed in place). The file is 2 bytes shorter, so nothing had to be paid for.Tests
No test file changes: the diff is skill prose and a changeset. The accepted form was measured against the built spec at
5e32f8cc93:Schema probe, built @objectstack/spec
Rows 1 to 3 are the three fragments as now written, parsed by
ApprovalNodeApproverSchema(1, 2) andApprovalNodeConfigSchema(3). The twocelrows are the old spelling.Acceptance notes
packages/spec/src/automation/approval.zod.tsdeclaresvalue: z.string().optional(); its description says "write the CEL expression that returns the approvers", and the comment above it says the designer renders a plain text input for the CEL source. Every approver-expression fixture inpackages/lint/src/validate-approval-approvers.test.tspasses a string, the lint hint prescribes{ type: 'expression', value: 'CEL-SOURCE', … }(placeholder spelled in words),examples/app-showcase/src/automation/flows/dynamic-approval.flow.tswrites a string, and the compiled end-to-end flow a few lines below the fragments in this same file already wrotevalue: 'vars.lead_review.next_reviewers'. Nothing in the tree passes acelobject here, so the card's stop condition did not apply.string". The approvervalueis one field shared by every approver type (a user id, a position name, a field name, or CEL), which is why it is a string today. Whether it should accept the{ dialect, source }envelope forexpressionis a contract question for the spec lane. This PR does not touch spec.celtag "builds each{ dialect, source }envelope" of the flow example above it (start and edge conditions, thefilter). The approvervalueis not an envelope, so the sentence is still true; the table row now states the approver case where an author reads it.origin/mainwas still at this branch's base (98bda0ac17) when this was opened, so there was nothing to merge.Verification
Read first:
skills/objectstack-automation/references/state-machines-and-approvals.md, the code block under Dynamic approvers (the threevalue:lines are the whole risk).expressionrow of the approver table in the same file.Two-minute check:
node scripts/check-skills-token-ratchet.mjsprintsstate-machines-and-approvals.md 5933 / 5936 (-3)and exits 0.Local gates at 5e32f8c
node scripts/pm/dispatch-gates.mjs --commandsderived 49 commands. 47 ran and exited 0, among them:NOT MEASURED:
pnpm check:dual-build-cjs-loadsandpnpm check:lean-entry-closureboth exited 3 withPREREQUISITE NOT MET(they load every package's builtdist/; only spec, formula and lint were built here). Neither reads a skill file. CI runs both.🤖 Generated with Claude Code